//
//  HelloWorldLayer.h
//  HealthAsk
//
//  Created by liyuhang on 12-8-15.
//  Copyright __MyCompanyName__ 2012年. All rights reserved.
//


#import <GameKit/GameKit.h>

// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
#import "HExamination.h"

// HelloWorldLayer
@interface HelloWorldLayer : CCLayer <GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate>
{
    HExamination * m_pExam;
    int            m_nNowQues;
    int            m_nNowTime;
    int            m_nTotalTime;
    int            m_nRightCount;
    NSTimer      * timer;
    CCMenu       * m_pMenu;
    CCLabelTTF   * m_pLabel;
    CCLabelTTF * _pLabel;
    CCLabelTTF * m_pTimeLabel;
    
    Boolean      bAnswerd;
}

@property (nonatomic , retain) HExamination * m_pExam;
@property (nonatomic , assign) int m_nNowQues;
@property (nonatomic , assign) int m_nNowTime;
@property (nonatomic , retain) NSTimer * timer;

// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene *) scene;
-(void) TimeUp;
-(void) createQuestion;
-(void) changeQuestion;
-(void) YesOrNoQuestion:(int)tag;

@end
